<%-- 
    Document   : header
    Created on : Sep 21, 2012, 8:28:32 AM
    Author     : DucThien
--%>
    <div id="container">
        <div id="header">
            <div id="logo" onclick="location.reload();"></div>
            <div id="frame-login">
                
                <% 
                    HttpSession session1 = request.getSession();
                    if(session1.getAttribute("user_login") != null){
                        
                        out.println("<span style='color:black;font-size:12px;font-weight:bold;margin-left:10px'>"+session1.getAttribute("user_login")+"</span>");
                        out.println("<span onclick=window.location='logout' style='color:blue;'> Logout </span>");
                    }else{
                        out.println("<span style='margin-left:10px' onclick='showDialogRegistration();' id='button-registration'> Registration </span>");
                        out.println("<span onclick='showDialogLogin();' id='button-login'>Login</span>");
                    }
                %>
                
            </div>
<!--            <a id="flag"> <img src="image/gb.png" width="22px" height="16px" alt="EngLish" /></a>-->
        </div>
        <div id="menu-arrow">
            <ul class="topnav">
                <li><a onclick="location.reload();">Home Page</a></li>
                <li><a onclick="location.reload();">Deals</a></li>
            </ul> 
        </div>        